import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import cesium from 'vite-plugin-cesium'
import Icons from 'unplugin-icons/vite'
import IconsResolver from 'unplugin-icons/resolver'
export default defineConfig({
  // ...
  server: {
    port: 5173,
    hmr: true
  },
  plugins: [vue(),cesium(),
    // ...
    
    AutoImport({
      resolvers: [ElementPlusResolver(),
        IconsResolver({
          enabledCollections: ['ep'],
        })],
      
    }),
    Components({
      resolvers: [ElementPlusResolver(),
        IconsResolver({
          enabledCollections: ['ep'],
        })],
    }),
    Icons({
      autoInstall: true,
    })
  ],
})

// https://vitejs.dev/config/



